Skip to content

fix(inbox): load TUI panel and ship scripts/ in the npm pack - #239

Merged
st0nefish-ci[bot] merged 1 commit into
masterfrom
fix-inbox-plugin-packaging
Nov 11, 2026
Merged

st0nefish-ci[bot] merged 1 commit into
masterfrom
fix-inbox-plugin-packaging

Conversation

@St0nefish

Copy link
Copy Markdown
Owner

Summary

The OpenCode inbox plugin (installed via github:St0nefish/agent-toolkit#master::path:plugins-opencode/inbox) had two install-time bugs, both observed on a machine where the plugin is consumed from node_modules/:

  1. TUI panel failed to load with Cannot find package 'react' imported from .../src/tui.tsx. OpenCode's bun-plugin-solid skips paths under node_modules/, so Bun's built-in .tsx loader transpiled the JSX with the default React transform instead of Solid's. The in-file /** @jsxImportSource @opentui/solid */ pragma makes the transform explicit regardless of where the plugin is installed.
  2. scripts/inbox missing from the packed package. core.ts resolves the inbox CLI relative to the package root (../scripts/inbox), but "files": ["src"] excluded scripts/ from the npm pack, so github: installs never shipped it.

Test plan

  • CI (this machine has no node/flock, so the suites that need them skip locally).
  • On the laptop: after merge, refresh the plugin install and confirm opencode mcp list-era plugin reconciliation no longer logs Cannot find package 'react' and the inbox panel appears in the TUI.

- add /** @jsxImportSource @opentui/solid */ to tui.tsx: OpenCode's
  bun-plugin-solid skips paths under node_modules/, so Bun's default
  .tsx loader transpiled the JSX with the React transform and the
  panel failed to load with "Cannot find package 'react'"
- add scripts to the files array: core.ts resolves the CLI relative
  to the package, but files:["src"] excluded scripts/inbox from
  github: installs, so inbox state was unreadable
@st0nefish-ci
st0nefish-ci Bot enabled auto-merge November 11, 2026 01:39
@st0nefish-ci
st0nefish-ci Bot merged commit a560c70 into master Nov 11, 2026
8 checks passed
@st0nefish-ci
st0nefish-ci Bot deleted the fix-inbox-plugin-packaging branch November 11, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant